package com.qfedu.fmmll.submit.service.feign;

import com.qfedu.fmmall.entity.Orders;
import com.qfedu.fmmall.vo.ShoppingCartVO;
import com.qfedu.fmmll.submit.service.fallback.OrderAddFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/2/10 16:26
 */
@Repository
@FeignClient(value = "order-add",fallback = OrderAddFallback.class)
public interface OrderAddClient {
    @PostMapping("/order/save")
    List<ShoppingCartVO> saveOrder(@RequestBody Orders orders, @RequestParam("cids") String cids );
}
